﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RptSqlHelper.aspx.cs" Inherits="DotNet.WebUI.ADO.RptSqlHelper" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>用户管理</title>
    <link type="text/css" rel="Stylesheet" href="../CSS/Main.css" />
    <script type="text/javascript">
        function ShowMsg() {
            return confirm("确认是否删除？");
        }
        function ShowPwdMsg() {
            return confirm("确认是否初始化密码？");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <table class="TableList">
            <tr class="Title">
                <td style="width:140px;"><b>登陆代码</b></td>
                <td style="width:100px;"><b>姓名</b></td>
                <td><b>描述</b></td> 
                <td><b>操作</b></td> 
            </tr>
            <asp:Repeater ID="rptUsers" runat="server" onitemcommand="rptData_ItemCommand">
                <ItemTemplate>
                    <tr style="background-color:#FFFFFF;">
                        <td><%# Eval("LoginID")%></td>
                        <td><%# Eval("Name")%></td>
                        <td><%# Eval("Depict")%></td>
                        <td><asp:LinkButton ID="btnEdit" CommandName="Edit" CommandArgument='<%# Eval("LoginID")%>' runat="server">编辑</asp:LinkButton>&nbsp;&nbsp;
                            <asp:LinkButton ID="btnDel" CommandName="Del" CommandArgument='<%# Eval("LoginID")%>' OnClientClick="return ShowMsg()" runat="server">删除</asp:LinkButton>&nbsp;&nbsp;
                            <asp:LinkButton ID="btnPwd" CommandName="Pwd" CommandArgument='<%# Eval("LoginID")%>' OnClientClick="return ShowPwdMsg()" runat="server">重置密码</asp:LinkButton></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </form>
</body>
</html>